package Demo1;

import Demo1.Animal;

public class Dog extends Animal {
    public Dog(String name, int age) {
        super(name, age);
    }
    public void bark() {
        System.out.println(this.name + "is barking");
    }
    public void eat(){
        System.out.println(this.name+"is going to eating dog food");
    }
}
